Multiplication and Division

Binary Multiplication

Binary multiplication is just like decimal multiplication, it’s just a bunch of addition.

\begin{align*} &110 \\ \times &101 \end{align*}

—is equal to—

\begin{align*} &110 \\ 0&00 \\ + 11&0 \\ = 11&110 \end{align*}

This is also known as partial product summation, and it requires a lot of addition.

Compressors

Compressor:

  1. Performs addition operation
  2. of inputs > # of outputs

Note: Compressors are basic components in a lot of applications, like ones for multiplication.

Example: Is it possible to create a 15-4 multiplier?

3-2

7-3

10-4

15-4

Advanced Compressors

Advanced Compressor:

  1. Performs addition operation
  2. of inputs > # of outputs

  3. Carry in(s) must not change carry out(s)

More on Carry Behavior: Carry bits aren’t compressed because they’ll be generated and consumed by whatever circuit design uses advanced compressors.

4-2

Dot Matrix Representation

Binary Division

A. Repeated Subtraction (Long Division)

Easy and slow.

B. Division using Multiplication

Very efficient.

Let M and d be two numbers.

\frac{M}{d} = \frac{0.M}{0.d}, y = 1 - 0.d \to 0.d = 1 - y

Base Formula:

\frac{0.M}{0.d} &= \frac{0.M}{1 - y}

Now, we can multiply numerator and denominator by (1+y) repeatedly, the more repetitions, the more accurate the approximation will be

\begin{align*} \frac{0.M}{1 - y} &= \frac{0.M (1 + y)}{(1-y)(1+y)} = \frac{0.M (1 + y)}{1 - y^2} \\ &= \frac{0.M (1+y)(1+y^2)}{(1-y^2)(1+y^2)} = \frac{0.M (y)(1+y^2)}{(1-y^4)} \end{align*}